<template>
  <div class="categories">
    <template v-for="(item, index) in hotFilters" :key="item.label">
      <div class="item">
        <van-tag color="#ccc" round type="primary">{{ item.label }}</van-tag>
      </div>
    </template>
  </div>
</template>

<script setup>
import useSearchStore from "@/stores/modules/search";
import { storeToRefs } from 'pinia';

const Store = useSearchStore()
const { hotFilters } = storeToRefs(Store)

</script>

<style lang="less" scoped>

.categories {
  display: flex;
  overflow-x: auto;
  // height: 80px;
  padding: 0 10px;
  margin-top: 8px;
  &::-webkit-scrollbar {
    display: none;
  }

  .item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    // width: 70px;
    text-align: center;
    margin-right: 5px;

    // .text {
    //   font-size: 12px;
    //   margin-top: 8px;
    // }
  }
}

</style>
